package com.hqyj.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * @author xfy
 * @create 2021-10-21 9:58
 */
@Controller
@RequestMapping("/admin")
public class AdminController {
    @RequestMapping("/logout")
    public String Logout(HttpSession session){
        session.invalidate();
        return "login";
    }

    @RequestMapping("/loginPage")
    public String Login(){
        return "login";
    }
    @RequestMapping("/index")
    public String Index(){
        return "index";
    }

    @RequestMapping("/userInfo")
    public String userInfo(){
        return "userInfo";
    }
}
